Optimal. Leaf size=52 \[ -\frac{a \log \left (a^2 x^2+1\right )}{2 c}+\frac{a \log (x)}{c}-\frac{a \tan ^{-1}(a x)^2}{2 c}-\frac{\tan ^{-1}(a x)}{c x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0865378, antiderivative size = 52, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.35, Rules used = {4918, 4852, 266, 36, 29, 31, 4884} \[ -\frac{a \log \left (a^2 x^2+1\right )}{2 c}+\frac{a \log (x)}{c}-\frac{a \tan ^{-1}(a x)^2}{2 c}-\frac{\tan ^{-1}(a x)}{c x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4918
Rule 4852
Rule 266
Rule 36
Rule 29
Rule 31
Rule 4884
Rubi steps
\begin{align*} \int \frac{\tan ^{-1}(a x)}{x^2 \left (c+a^2 c x^2\right )} \, dx &=-\left (a^2 \int \frac{\tan ^{-1}(a x)}{c+a^2 c x^2} \, dx\right )+\frac{\int \frac{\tan ^{-1}(a x)}{x^2} \, dx}{c}\\ &=-\frac{\tan ^{-1}(a x)}{c x}-\frac{a \tan ^{-1}(a x)^2}{2 c}+\frac{a \int \frac{1}{x \left (1+a^2 x^2\right )} \, dx}{c}\\ &=-\frac{\tan ^{-1}(a x)}{c x}-\frac{a \tan ^{-1}(a x)^2}{2 c}+\frac{a \operatorname{Subst}\left (\int \frac{1}{x \left (1+a^2 x\right )} \, dx,x,x^2\right )}{2 c}\\ &=-\frac{\tan ^{-1}(a x)}{c x}-\frac{a \tan ^{-1}(a x)^2}{2 c}+\frac{a \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^2\right )}{2 c}-\frac{a^3 \operatorname{Subst}\left (\int \frac{1}{1+a^2 x} \, dx,x,x^2\right )}{2 c}\\ &=-\frac{\tan ^{-1}(a x)}{c x}-\frac{a \tan ^{-1}(a x)^2}{2 c}+\frac{a \log (x)}{c}-\frac{a \log \left (1+a^2 x^2\right )}{2 c}\\ \end{align*}
Mathematica [A] time = 0.0077087, size = 52, normalized size = 1. \[ -\frac{a \log \left (a^2 x^2+1\right )}{2 c}+\frac{a \log (x)}{c}-\frac{a \tan ^{-1}(a x)^2}{2 c}-\frac{\tan ^{-1}(a x)}{c x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.036, size = 51, normalized size = 1. \begin{align*} -{\frac{a \left ( \arctan \left ( ax \right ) \right ) ^{2}}{2\,c}}-{\frac{\arctan \left ( ax \right ) }{cx}}-{\frac{a\ln \left ({a}^{2}{x}^{2}+1 \right ) }{2\,c}}+{\frac{a\ln \left ( ax \right ) }{c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.60181, size = 72, normalized size = 1.38 \begin{align*} -{\left (\frac{a \arctan \left (a x\right )}{c} + \frac{1}{c x}\right )} \arctan \left (a x\right ) + \frac{{\left (\arctan \left (a x\right )^{2} - \log \left (a^{2} x^{2} + 1\right ) + 2 \, \log \left (x\right )\right )} a}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.69865, size = 116, normalized size = 2.23 \begin{align*} -\frac{a x \arctan \left (a x\right )^{2} + a x \log \left (a^{2} x^{2} + 1\right ) - 2 \, a x \log \left (x\right ) + 2 \, \arctan \left (a x\right )}{2 \, c x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.0772, size = 68, normalized size = 1.31 \begin{align*} \begin{cases} \frac{a \log{\left (x \right )}}{c} - \frac{a \log{\left (x^{2} + \frac{1}{a^{2}} \right )}}{2 c} - \frac{a \operatorname{atan}^{2}{\left (a x \right )}}{2 c} - \frac{\operatorname{atan}{\left (a x \right )}}{c x} & \text{for}\: c \neq 0 \\\tilde{\infty } \left (a \log{\left (x \right )} - \frac{a \log{\left (a^{2} x^{2} + 1 \right )}}{2} - \frac{\operatorname{atan}{\left (a x \right )}}{x}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\arctan \left (a x\right )}{{\left (a^{2} c x^{2} + c\right )} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]